set version=1.0.0


call mvn clean install -DskipTests -Dspring.profiles.active=prod


echo "当前版本: %version%"
call docker build -t eladmin-gas:%version% .
call docker tag eladmin-gas:%version% registry.cn-shenzhen.aliyuncs.com/tanhd/eladmin-gas:%version%
call docker push registry.cn-shenzhen.aliyuncs.com/tanhd/eladmin-gas:%version%

@REM docker login --username=tanhd2008 registry.cn-shenzhen.aliyuncs.com
@REM $ docker tag [ImageId] registry.cn-shenzhen.aliyuncs.com/tanhd/eladmin-gas:[镜像版本号]
@REM $ docker push registry.cn-shenzhen.aliyuncs.com/tanhd/eladmin-gas:[镜像版本号]